<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>事件冒泡</title>
    <link rel="stylesheet" href="../CSS/Js-Add-task3.css" type="text/css">
    <script type="text/javascript" src="../JS/Js-Add-task3.js"></script>
    <style type="text/css">

    </style>
</head>
<body>
<div id="div1">
    div1
</div>
<div id="div2">div2</div>

<script language="JavaScript">
    var divOne = document.getElementById("div1");
    var divTwo = document.getElementById("div2");
    var speed = 200;
    var go = setInterval("loop1()",speed);
    var go1 = setInterval("loop2()",speed);
</script>
</body>
</html>